import API from 'api'

//发起demo的get请求
export const http_demo1 = params => API.get('api/demo1', { params })

//发起demo的post请求
export const http_demo2 = data => API.post('api/demo2', data)

//发起demo的put请求
export const http_demo3 = data => API.put('api/demo3', data)

//发起demo的delete请求
export const http_demo4 = id => API.put('api/demo4' + id)
